package com.way.api.mall;

import com.way.api.mall.fallback.RemoteOrderFallback;
import com.way.domain.mall.Order;
import com.way.dto.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "way-mall",fallbackFactory = RemoteOrderFallback.class)
public interface RemoteOrderService {

    @PostMapping("/order")
    CommonResult createOrder(@RequestBody Order order);
}
